<?php $this->load->view('templates/backend/header'); ?>
<h3><?php echo $this->lang->line("ticketWorkers_list");?></h3>

<?php if (isset($flash_message)  && $flash_message!=NULL ): ?>
<div class="alert alert-success"><a class="close" customerAssess-dismiss="alert">x</a><strong><?php echo $flash_message; ?></strong></div>
<?php endif; ?>
<div class="well">
    <?php echo form_open();?>
        <div class="tab-content">	
            <div class="tab-pane active" id="main">
                <?php
                //hoten
                echo form_label($this->lang->line('name'), 'name');
                echo form_input(array('name' => 'name', 'id' => 'name', 'value' => (isset($ticketWorkers->name))?$ticketWorkers->name:''));
                echo form_error('name');
                
                echo form_label($this->lang->line('status'), 'status');
                echo form_dropdown('status', $this->ticketWorkers_model->active_list, (isset($ticketWorkers->status))?$ticketWorkers->status:'');
                echo form_error('status');

                echo form_label($this->lang->line('agent_code'), 'agent_code');
                echo form_dropdown('agent_code', $this->ticketWorkers_model->getListAgentCode(), (isset($ticketWorkers->agent_code)?$ticketWorkers->agent_code:'1'));
                echo form_error('agent_code');
                
                ?>
            </div>
        </div>
        <div class="top-button">
                <?php echo form_button(array('id' => 'submit', 'value' => 'Update', 'name' => 'submit', 'type' => 'submit', 'content' => $this->lang->line('save'),'class' => 'btn btn-primary')); ?>
                <a href="<?php echo site_url('auth/ticketWorkers'); ?>" class="btn btn-danger"><?php echo $this->lang->line('cancel')?></a>
        </div>
    <?php form_close();?>
    <span id="simple-msg-submit"></span>
</div>

<?php $this->load->view('templates/backend/footer'); ?>